<script type="text/javascript" >
    stFacebookToolbox.load_tooltip();
    stFacebookToolbox.on_submitform('#settingForm');
    stFacebookToolbox.loadUploadButton('200');
    stFacebookToolbox.loadRemoveButton();
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
    <input id="linter" value="<?php echo urlencode(get_bloginfo('url'));?>" type="hidden" />
        <form class="stform" id="settingForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >
                <ul>
                    <li>
                        <label><?php _e('Use Open Graph Meta tags', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input <?php echo $option['user'] == '1'? 'checked':''?> title="Use Open Graph Meta tags" value="1" class="" name="data[user]" id="user" type="checkbox" tabindex="7" onclick="stFacebookToolboxcustom.setting_display_form('user','setting_display_form_graph');"/>
                        </div>
                        <br clear="both" />
                    </li>
					<div id="setting_display_form_graph" <?php if($option['user'] != '1'){echo "style='display:none;'";} ?>>
                    <li>
                        <label title="Select facebook method" ><?php _e('Title', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Title" value="<?php echo $option['title'] ?>" class="" name="data[title]" id="title" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>

                    <li>
                        <label><?php _e('Type', $config['plugin_name'])?>:</label>
                        <div>
                            <select title="Select facebook type" class="input login_input " id="type" name="data[type]" tabindex="2">
                                <option value="activity" <?php if ($option['type'] == 'activity') echo ' selected'; ?>>activity</option>
				                <option value="sport" <?php if ($option['type'] == 'sport') echo ' selected'; ?>>sport</option>
				                 <option value="bar" <?php if ($option['type'] == 'bar') echo ' selected'; ?>>bar</option>
				                <option value="company" <?php if ($option['type'] == 'company') echo ' selected'; ?>>company</option>
				                <option value="cafe" <?php if ($option['type'] == 'cafe') echo ' selected'; ?>>cafe</option>
				                <option value="hotel" <?php if ($option['type'] == 'hotel') echo ' selected'; ?>>hotel</option>
				                <option value="restaurant" <?php if ($option['type'] == 'restaurant') echo ' selected'; ?>>restaurant</option>
				                <option value="cause" <?php if ($option['type'] == 'cause') echo ' selected'; ?>>cause</option>
				                <option value="sports_league" <?php if ($option['type'] == 'sports_league') echo ' selected'; ?>>sports_league</option>
				                <option value="sports_team" <?php if ($option['type'] == 'sports_team') echo ' selected'; ?>>sports_team</option>
				                <option value="band" <?php if ($option['type'] == 'band') echo ' selected'; ?>>band</option>
				                <option value="government" <?php if ($option['type'] == 'government') echo ' selected'; ?>>government</option>
				                <option value="non_profit" <?php if ($option['type'] == 'non_profit') echo ' selected'; ?>>non_profit</option>
				                <option value="school" <?php if ($option['type'] == 'school') echo ' selected'; ?>>school</option>
				                <option value="university" <?php if ($option['type'] == 'university') echo ' selected'; ?>>university</option>
				                <option value="actor" <?php if ($option['type'] == 'actor') echo ' selected'; ?>>actor</option>
				                <option value="athlete" <?php if ($option['type'] == 'athlete') echo ' selected'; ?>>athlete</option>
				                <option value="author" <?php if ($option['type'] == 'author') echo ' selected'; ?>>author</option>
				                <option value="director" <?php if ($option['type'] == 'director') echo ' selected'; ?>>director</option>
				                <option value="musician" <?php if ($option['type'] == 'musician') echo ' selected'; ?>>musician</option>
				                <option value="politician" <?php if ($option['type'] == 'politician') echo ' selected'; ?>>politician</option>
				                <option value="public_figure" <?php if ($option['type'] == 'public_figure') echo ' selected'; ?>>public_figure</option>
				                <option value="city" <?php if ($option['type'] == 'city') echo ' selected'; ?>>city</option>
				                <option value="country" <?php if ($option['type'] == 'country') echo ' selected'; ?>>country</option>
				                <option value="landmark" <?php if ($option['type'] == 'landmark') echo ' selected'; ?>>landmark</option>
				                <option value="state_province" <?php if ($option['type'] == 'state_province') echo ' selected'; ?>>state_province</option>
				                <option value="album" <?php if ($option['type'] == 'album') echo ' selected'; ?>>album</option>
				                <option value="book" <?php if ($option['type'] == 'book') echo ' selected'; ?>>book</option>
				                <option value="drink" <?php if ($option['type'] == 'drink') echo ' selected'; ?>>drink</option>
				                <option value="food" <?php if ($option['type'] == 'food') echo ' selected'; ?>>food</option>
				                <option value="game" <?php if ($option['type'] == 'game') echo ' selected'; ?>>game</option>
				                <option value="product" <?php if ($option['type'] == 'product') echo ' selected'; ?>>product</option>
				                <option value="song" <?php if ($option['type'] == 'song') echo ' selected'; ?>>song</option>
				                <option value="movie" <?php if ($option['type'] == 'movie') echo ' selected'; ?>>movie</option>
				                <option value="tv_show" <?php if ($option['type'] == 'tv_show') echo ' selected'; ?>>tv_show</option>
				                <option value="blog" <?php if ($option['type'] == 'blog') echo ' selected'; ?>>blog</option>
				                <option value="website" <?php if ($option['type'] == 'website') echo ' selected'; ?>>website</option>
				                <option value="article" <?php if ($option['type'] == 'article') echo ' selected'; ?>>article</option>
                            </select>
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Image', $config['plugin_name'])?>:</label>
                        <div>
                         <?php
                        $class_hide = "hide";
                        if (($option['image']) != '') {
                            $upload_data = wp_upload_dir();
                            $image = explode('/wp-content/',$option['image']);
                            $image = '../wp-content/'.$image[1];
                            $stplugin_picture_url = $upload_data['url'] . '/' . $option['image'];
                            $stplugin_picture_dir = $upload_data['path'] . '/' . $option['image'];
                            $class_hide = "";
                        }
                        ?>
                            <input value="<?php echo $option['image']; ?>" class="" name="data[image]" id="id_image" type="hidden"/>
	                        <div class="upload_button_div">
	                            <span id="image" class="button image_upload_button">Upload Image</span>
	                            <span pictureID="image" id="reset_image" class="button image_reset_button <?php echo $class_hide ?>">Remove</span>
	                        </div>
                            <?php
                        if (($option['image']) != '') {
                        ?>
                            <img alt="" src="<?php echo $image;?>" id="image_image" class="hide preview" style="display: inline;"/>
                        <?php } ?>
                        </div>
                        <br clear="both" />
                    </li>

                    <li>
                        <label><?php _e('Site name', $config['plugin_name'])?>:</label>
                        <div>
                            <input title="site_name" value="<?php echo $option['site_name'] ?>" class="" name="data[site_name]" id="site_name" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Description', $config['plugin_name'])?>:</label>
                        <div>
                        	<textarea title="Description"
                                      class="" name="data[description]" cols="5" rows="5"
                                      id="description" tabindex="13" ><?php echo $option['description'] ?></textarea>
						</div>
                        <br clear="both" />
                    </li>
                     <li>
                        <label><?php _e('Admins', $config['plugin_name'])?>:</label>
                        <div>
                        	<input title="admins" value="<?php echo $option['admins'] ?>" class="" name="data[admins]" id="admins" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                     <li>
                        <label><?php _e('App id', $config['plugin_name'])?>:</label>
                        <div>
                        	<input title="app_id" value="<?php echo $option['app_id'] ?>" class="" name="data[app_id]" id="app_id" type="text" tabindex="4"  />
						</div>
                        <br clear="both" />
                    </li>
                    </div>
                </ul>
        <div>&nbsp;</div>
        <div style="padding-left: 65px; border-bottom: 1px solid rgb(214, 214, 214); background-position: 15px top; padding-bottom: 10px;" class="icon_re">
            <h2 class="red_color upcase">Default Open Graph Contact Information Data
            </h2>
        </div>
                 <ul style="padding:25px 0 0 0px">
                    <li>
                        <label><?php _e('Use Open Graph Contact ', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input <?php echo $option['contact'] == '1'? 'checked':''?> title="Use Open Graph Meta tags" value="1" class="" name="data[contact]" id="contact" type="checkbox" tabindex="7" onclick="stFacebookToolboxcustom.setting_display_form('contact','setting_display_form_contact');"/>
                        </div>
                        <br clear="both" />
                    </li>
					<div id="setting_display_form_contact" <?php if($option['contact'] != '1'){echo "style='display:none;'";} ?>>
                    <li>
                        <label title="Select facebook method" ><?php _e('Email', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Email" value="<?php echo $option['email'] ?>" class="" name="data[email]" id="email" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Select facebook method" ><?php _e('Phone number', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Phone number" value="<?php echo $option['phone_number'] ?>" class="" name="data[phone_number]" id="phone_number" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Select facebook method" ><?php _e('Fax number', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Fax number" value="<?php echo $option['fax_number'] ?>" class="" name="data[fax_number]" id="fax_number" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    </div>

                </ul>
                 <div>&nbsp;</div>
        <div style="padding-left: 65px; border-bottom: 1px solid rgb(214, 214, 214); background-position: 15px top; padding-bottom: 10px;" class="icon_re">
            <h2 class="red_color upcase">Open Graph Location Data
            </h2>
        </div>
                  <ul style="padding:25px 0 0 0px">
                    <li>
                        <label><?php _e('Use Open Graph Location data', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input <?php echo $option['location'] == '1'? 'checked':''?> title="Use Open Graph Meta tags" value="1" class="" name="data[location]" id="location" type="checkbox" tabindex="7" onclick="stFacebookToolboxcustom.setting_display_form('location','setting_display_form_location');"/>
                        </div>
                        <br clear="both" />
                    </li>
					<div id="setting_display_form_location" <?php if($option['location'] != '1'){echo "style='display:none;'";} ?>>
                    <li>
                        <label title="Select facebook method" ><?php _e('Latitude', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Latitude" value="<?php echo $option['latitude'] ?>" class="" name="data[latitude]" id="latitude" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Select facebook method" ><?php _e('Longitude', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Longitude" value="<?php echo $option['longitude'] ?>" class="" name="data[longitude]" id="longitude" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Select facebook method" ><?php _e('Street address', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Street address" value="<?php echo $option['street-address'] ?>" class="" name="data[street-address]" id="street-address" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Select facebook method" ><?php _e('Locality', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Locality" value="<?php echo $option['locality'] ?>" class="" name="data[locality]" id="locality" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Region" ><?php _e('Region', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Region" value="<?php echo $option['region'] ?>" class="" name="data[region]" id="region" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Postal code" ><?php _e('Postal code', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Postal code" value="<?php echo $option['postal-code'] ?>" class="" name="data[postal-code]" id="postal-code" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label title="Country name" ><?php _e('Country name', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Country name" value="<?php echo $option['country-name'] ?>" class="" name="data[country-name]" id="country-name" type="text" tabindex="4"  />
                        </div>
                        <br clear="both" />
                    </li>
                    </div>
                    <li>
                        <input type="submit" value="Submit"/>
                    </li>


                </ul>
        </form>        
    </div>

</div>
